<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>

<input type="text" id="text">

<button onclick="get()" > 解析</button>
<script>

    function get() {
        var url=document.getElementById("text").valueOf();
        window.location.href=url;
    }

</script>
</body>
</html>